public class Computer {
    //品牌，价格，颜色，屏幕大小
    String brand, color;
    int price, screenSize;

    public void information() {
        System.out.println("电脑信息：\n品牌：" + brand + "\n价格：" + price + "元\n颜色：" + color + "\n屏幕大小：" + screenSize + "英寸");
    }
}
// 05.电脑有品牌，价格，颜色，屏幕大小等属性，定义并测试电脑对象，并输出
public class zy314_320 {
    public static void main(String[] args) {
        Computer java = new Computer();
        java.brand = "HUAWEI MateBook X";
        java.price = 7999;
        java.color = "青山黛";
        java.screenSize = 13;
        java.information();
    }
}